﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class ETitleCategory extends Object
    {
        public var __value:int;
        public static const _ETitleCategoryLevel:int = 1;
        public static const _ETitleCatagoryFriend:int = 2;
        public static const _ETitleCatagoryPet:int = 3;
        public static const _ETitleCatagoryToplistCombat:int = 4;
        public static const _ETitleCatagoryToplistLevel:int = 5;
        public static const _ETitleCatagoryToplistCareerCombat:int = 6;
        public static const _ETitleCatagoryToplistTopGuild:int = 7;
        public static const _ETitleCatagoryToplistTopGuildLeader:int = 8;
        public static const _ETitleCatagoryHeavenPlacard:int = 9;
        public static const _ETitleCatagoryEarthPlacard:int = 10;
        public static const _ETitleCatagoryCollect:int = 11;
        public static const _ETitleCatagoryTower:int = 99;
        public static const _ETitleCatagoryOther:int = 100;
        public static const _ETitleCatagoryProxy:int = 101;
        public static const _ETitleCatagoryOtherEx:int = 1001;

        public function ETitleCategory(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeShort(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : ETitleCategory
        {
            return new ETitleCategory(param1);
        }// end function

        public static function __read(param1:SerializeStream) : ETitleCategory
        {
            var _loc_2:* = param1.readShort();
            if (_loc_2 < 0 || _loc_2 >= 1002)
            {
                throw new MarshalException();
            }
            return ETitleCategory.convert(_loc_2);
        }// end function

    }
}
